package br.com.ufpr.sgp;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.PropertyModel;

import br.com.ufpr.sgp.pages.HelloWorldPage;
import br.com.ufpr.sgp.pages.LoginPage;
import br.com.ufpr.util.base.BasePage;

/**
 * 
 * @author 
 */
public class TemplatePage extends BasePage
{
	private static final long serialVersionUID = -2069351648458693106L;
	/** title of the current page. */
    private String pageTitle = "SGP";


    /**
     * Constructor
     */
    public TemplatePage()
    {
        add(new Label("title", new PropertyModel<String>(this, "pageTitle")));
        add(new BookmarkablePageLink<Void>("homeLink", HomePage.class));
        add(new BookmarkablePageLink<Void>("helloWorldLink", HelloWorldPage.class));
        add(new BookmarkablePageLink<Void>("loginLink", LoginPage.class));
    }

    /**
     * Gets the title.
     * 
     * @return title
     */
    public final String getPageTitle()
    {
        return pageTitle;
    }

    /**
     * Sets the title.
     * 
     * @param title
     *            title
     */
    public final void setPageTitle(String title)
    {
        pageTitle = title;
    }
}